package com.twohand.admin.Entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class User implements Serializable {
    @TableId
    Integer id;
    @ApiModelProperty(name = "创建时间",notes = "")
    @TableField(fill= FieldFill.INSERT,value = "create_time")
    Date createTime;
    @ApiModelProperty(name = "更新时间",notes = "")
    @TableField(fill= FieldFill.INSERT_UPDATE,value = "update_time")
    Date updateTime;
    String openid;
    String nickname;
    String pwd;
    Integer sid;
    @TableField(value = "avatar_url")
    String avatarUrl = "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132";
    @TableField(value = "login_time")
    LocalDateTime loginTime;
}
